import java.util.Random;

public class test22 {
    public static void main(String[] args) {
        Random rand = new Random();
        int[] arr=new int[10];
        int sum=0;
        int count=0;
        for (int i = 0; i < 10; i++) {
            int a = rand.nextInt(100) + 1;
            arr[i]=a;
        }
        for (int i = 0; i< arr.length; i++) {
            sum+=arr[i];
        }
        System.out.println(sum);
        int arage=sum/10;
        System.out.println(arage);
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]<arage){
                count++;
            }
        }
        System.out.println(count);
    }
}
